﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="cart.aspx.cs" Inherits="NKD07.cart" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" language="javascript">
    function getquantity(id) {
        var idquantity = "valuequantity" + id;
        if (isNaN(document.getElementById(idquantity).value)) {
            alert("vui lòng nhập số lượng đúng quy định");
        }

        else {
            document.getElementById("<%=quantity.ClientID%>").value = document.getElementById(idquantity).value;
            document.getElementById("<%=idproducthidden.ClientID%>").value = id;
        }
    }
         function delete_elementcart(id) {
             var r = confirm("Bạn Có Chắc Chắn Muốn Xóa Sản Phẩm Này Ra Khỏi Giỏ Hàng Không?");
             if (r == true) {
                 document.getElementById("<%=idproducthiddendelete.ClientID%>").value = id;
             }
             else {
             }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>--%>
    <div class="container">
<input type="hidden" id="quantity" runat="server" value="1"/>
<input type="hidden" id="idproducthidden" runat="server" value="0"/>
<input type="hidden" id="idproducthiddendelete" runat="server" value="0"/>
        <div class="content-indent">
            <div id="vmMainPage">
                <h2 class="title">
                    Cart</h2>
                <div style="padding: 20px 0px 0px 0px;">
                    <!-- Cart Begins here -->
                    <div class="basket">
                        <table width="99%" cellspacing="0" cellpadding="0" border="0">
                            <tbody>
                                <tr align="left" class="sectiontableheader">
                                    <td class="first">
                                        <span>Name</span>
                                    </td>
                                    <td class="second">
                                        <span>SKU</span>
                                    </td>
                                    <td class="three">
                                        <span>Price</span>
                                    </td>
                                    <td class="four">
                                        <span>Quantity / Update</span>
                                    </td>
                                    <td class="last">
                                        <span>Subtotal</span>
                                    </td>
                                </tr>
                               <!-- show gio hang-->
                               <div id="showgiohang" runat="server"></div>
                                <!--Begin of SubTotal, Tax, Shipping, Coupon Discount and Total listing -->
                                
                                
                            </tbody>
                        </table>
                    </div>
                    <script type="text/javascript">
</script>
                    <!-- End Cart -->
                    <br>
                </div>
                <div style="padding: 14px 0px 0px 0px; overflow: hidden; width: 235px;">
                    <div style="text-align: left; position: relative;">
                        <span class="arrow"></span><a href="checkout.aspx" title="Checkout" class="checkout_link png">
                            Checkout</a>
                    </div>
                </div>
                <div id="statusBox" style="text-align: center; display: none; visibility: hidden;">
                </div>
            </div>
        </div>
    </div>
    <%--</ContentTemplate>
    </asp:UpdatePanel>--%>
</asp:Content>
